count digits python program